import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;

/**
 * Created by asus on 2017/4/20.
 */
public class TestData {
    public static void main (String [] args) throws IOException{
        final int MAX = 10;
        int value;
        String file = "test.dat";
        Random rand = new Random();

        FileWriter fw = new FileWriter(file);
        BufferedWriter bw = new BufferedWriter(fw);
        PrintWriter outfile = new PrintWriter(bw);

        for (int line = 1;line <= MAX;line++){
            for (int num=1;num <= MAX ; num++){
                value = rand.nextInt(90) + 10;
                outfile.print(value + "");
            }
            outfile.println();
        }
        outfile.close();
        System.out.println("Output file has been created:" + file);
    }
}
